package cultu.community.dao;

import java.util.Date;

import cultu.community.message.CommunityStats;
import cultu.community.message.OrderEvolutionStat;

/**
 *CommunityStatsDAO
 */
public interface CommunityStatsDAO
{
	/**
	 * getCommunityStats
	 * @return CommunityStats
	 */
	CommunityStats getCommunityStats();
	/**
	 * getOrdersEvolution
	 * @return OrderEvolutionStat
	 */
	OrderEvolutionStat getOrdersEvolution();
	
	/**
	 * Gets the nb orders.
	 *
	 * @param pDate the date
	 * @return the nb orders
	 */
	int getNbOrders(Date pDate);
	
	/**
	 * Gets the nb subscriptions.
	 *
	 * @param pDate the date
	 * @return the nb subscriptions
	 */
	int getNbSubscriptions(Date pDate);
	
	/**
	 * Gets the nb products.
	 *
	 * @param pDate the date
	 * @return the nb products
	 */
	int getNbProducts(Date pDate);
}
